home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso
/
shareware
/
intuition
/
reqtools_2.1e
/
rexxreqtools
/
install
< prev
next >
Wrap
AmigaDOS Script File
|
1994-11-17
|
2KB
|
104 lines
.KEY ,
.BRA {
.KET }
; Script file to install rexxreqtools.library
; $VER: Install 37.7 (10.6.93)
FailAt 30
;
; We need Kickstart 2.04 or higher
;
Version >NIL: VERSION 37
If WARN
Echo "You need Kickstart 2.04 or higher to use RexxReqTools"
Skip end
EndIf
;
; Inline procedure...
;
Alias _Install_ "Run >NIL: []Installer >NIL: *"Install RexxReqTools*" RexxReqTools"
;
; Can we find Installer?
;
If EXISTS C:Installer
_Install_ C:
Quit
EndIf
Version >NIL: ; Get Workbench version in $Workbench
If $Workbench GE 41
Echo "This must be a very old version of RexxReqTools."
Skip end
EndIf
Echo "Searching for Installer..."
; I'd better be prepared
If $Workbench GE 40
If EXISTS Install3.1:Installer
_Install_ Install3.1:
Quit
Else
Skip byhand
EndIf
EndIf
If $Workbench GE 39
If EXISTS Install3.0:Installer
_Install_ Install3.0:
Quit
Else
Skip byhand
EndIf
EndIf
If $Workbench GE 38
If EXISTS Install2.1:Installer
_Install_ Install2.1:
Quit
Else
Skip byhand
EndIf
EndIf
;
; Couldn't find Installer: I'll do it by hand.
;
Lab byhand
; Clever way to find version of included rexxreqtools.library
Version >ENV:RRTVersion{$$} "`cd`/rexxreqtools.library"
If FAIL
Version >ENV:RRTVersion{$$} "`cd`rexxreqtools.library"
EndIf
Echo "*E[0;0H*E[J*n$RRTVersion{$$} Installation Script*n"
If EXISTS LIBS:rexxreqtools.library
Echo "Version of rexxreqtools.library already installed:"
Version LIBS:rexxreqtools.library
Echo ""
EndIf
Ask "Install $RRTVersion{$$} ?"
If WARN
Copy rexxreqtools.library LIBS:rexxreqtools.library
Echo "*n$RRTVersion copied to your LIBS: directory.*n"
Version >NIL: reqtools.library VERSION 38
If WARN
Echo "*nYou'll also need version 38 (or higher) of the reqtools.library!!*n"
EndIf
Echo "*nInstallation completed"
EndIf
Lab end
UnsetEnv RRTVersion{$$}
Wait 5
Quit